package edu.sctu.practice.zhengsenwen.JavaLesson.finaL_static;

/**
 * Created by zhengsenwen on 2015/12/10.
 */
public class Client {

    public static void main(String[] args) {

        new Client().run();

        System.out.println(new Client().doSomeOpreation("wen", 13));

    }

    public void run() {
        Student zhen = new Student();

        zhen.setAge(20);
        zhen.setName("zheng");

        getStudent(zhen);
        System.out.println(zhen.getAge());

    }

    private void getStudent(Student student) {
        student.setAge(19);
    }

    public Student doSomeOpreation(String name, int age) {
        Student sen = new Student();
        sen.setName("sen");
        sen.setAge(20);
        return sen;
    }
}
